package com.unitechs.trap.common.pojo.config;

import java.util.HashMap;
import java.util.Map;

public class ExConfiguration {

    public static class A_ExConfiguration{
        /**
         * 厂家告警oid
         */
        public static final int A_TRAP_OID_CELL=1;
        /**
         * 告警标题
         */
        public static final int A_TRAP_TITLE_CELL=2;
        /**
         * 告警等级
         */
        public static final int A_TRAP_LEVEL_CELL=3;
        /**
         * 告警类型
         */
        public static final int A_TRAP_TYPE_CELL=4;
        /**
         * 告警标准名
         */
        public static final int A_TRAP_NAME_CELL=5;
        /**
         * 网管告警ID
         */
        public static final int A_TRAP_NMS_ID_CELL=6;

    }
    public static class B_ExConfiguration{
        /**
         * 厂家告警oid
         */
        public static final int B_TRAP_OID_CELL=1;
        /**
         * 告警标题
         */
        public static final int B_TRAP_TITLE_CELL=2;
        /**
         * 告警等级
         */
        public static final int B_TRAP_LEVEL_CELL=3;
        /**
         * 告警类型
         */
        public static final int B_TRAP_TYPE_CELL=4;
        /**
         * 告警标准名
         */
        public static final int B_TRAP_NAME_CELL=5;
        /**
         * 网管告警ID
         */
        public static final int B_TRAP_NMS_ID_CELL=6;
        /**
         * 表2厂家告警oid
         */
        public static final int B_TRAP_OID_CELL_TWO=0;
        /**
         * 表2对应的恢复oid
         */
        public static final int B_TRAP_OID_UP_CELL_TWO=1;

    }
    public static class C_ExConfiguration{
        /**
         * 厂家告警oid
         */
        public static final int C_TRAP_OID_CELL=1;
        /**
         * 告警标题
         */
        public static final int C_TRAP_TITLE_CELL=2;
        /**
         * 告警等级
         */
        public static final int C_TRAP_LEVEL_CELL=3;
        /**
         * 告警类型
         */
        public static final int C_TRAP_TYPE_CELL=4;
        /**
         * 告警标准名
         */
        public static final int C_TRAP_NAME_CELL=5;
        /**
         * 网管告警ID
         */
        public static final int C_TRAP_NMS_ID_CELL=6;
        /**
         * 变量oid
         */
        public static final int C_VAR_OID_CELL=7;
        /**
         * 变量名称
         */
        public static final int C_VAR_NAME_CELL=8;
        /**
         * 事件标题
         */
        public static final int C_VAR_TITLE_CELL=9;

        /**
         * 告警条件
         */
        public static final int C_VAR_CON_CELL=10;
    }
    public static class D_ExConfiguration{
        /**
         * 厂家告警oid
         */
        public static final int D_TRAP_OID_CELL=1;
        /**
         * 告警标题
         */
        public static final int D_TRAP_TITLE_CELL=2;
        /**
         * 告警等级
         */
        public static final int D_TRAP_LEVEL_CELL=3;
        /**
         * 告警类型
         */
        public static final int D_TRAP_TYPE_CELL=4;
        /**
         * 告警标准名
         */
        public static final int D_TRAP_NAME_CELL=5;
        /**
         * 网管告警ID
         */
        public static final int D_TRAP_NMS_ID_CELL=6;
        /**
         * 变量oid
         */
        public static final int D_VAR_OID_CELL=7;
        /**
         * 变量名称
         */
        public static final int D_VAR_NAME_CELL=8;
        /**
         * 事件标题
         */
        public static final int D_VAR_TITLE_CELL=9;

        /**
         * 告警条件
         */
        public static final int D_VAR_CON_CELL=10;
    }


    public static Map<String,Integer> getExConfigurationMap(String version){
        Map<String,Integer> map=new HashMap<>();
        switch (version){
            case "A":
                map.put(version+"_TRAP_OID_CELL",A_ExConfiguration.A_TRAP_OID_CELL);
                map.put(version+"_TRAP_TITLE_CELL",A_ExConfiguration.A_TRAP_TITLE_CELL);
                map.put(version+"_TRAP_LEVEL_CELL",A_ExConfiguration.A_TRAP_LEVEL_CELL);
                map.put(version+"_TRAP_TYPE_CELL",A_ExConfiguration.A_TRAP_TYPE_CELL);
                map.put(version+"_TRAP_NAME_CELL",A_ExConfiguration.A_TRAP_NAME_CELL);
                map.put(version+"_TRAP_NMS_ID_CELL",A_ExConfiguration.A_TRAP_NMS_ID_CELL);
                break;
            case "B":
                map.put(version+"_TRAP_OID_CELL",B_ExConfiguration.B_TRAP_OID_CELL);
                map.put(version+"_TRAP_TITLE_CELL",B_ExConfiguration.B_TRAP_TITLE_CELL);
                map.put(version+"_TRAP_LEVEL_CELL",B_ExConfiguration.B_TRAP_LEVEL_CELL);
                map.put(version+"_TRAP_TYPE_CELL",B_ExConfiguration.B_TRAP_TYPE_CELL);
                map.put(version+"_TRAP_NAME_CELL",B_ExConfiguration.B_TRAP_NAME_CELL);
                map.put(version+"_TRAP_NMS_ID_CELL",B_ExConfiguration.B_TRAP_NMS_ID_CELL);
                map.put(version+"_TRAP_OID_CELL_TWO",B_ExConfiguration.B_TRAP_OID_CELL_TWO);
                map.put(version+"_TRAP_OID_UP_CELL_TWO",B_ExConfiguration.B_TRAP_OID_UP_CELL_TWO);
                break;
            case "C":
                map.put(version+"_TRAP_OID_CELL",C_ExConfiguration.C_TRAP_OID_CELL);
                map.put(version+"_TRAP_TITLE_CELL",C_ExConfiguration.C_TRAP_TITLE_CELL);
                map.put(version+"_TRAP_LEVEL_CELL",C_ExConfiguration.C_TRAP_LEVEL_CELL);
                map.put(version+"_TRAP_TYPE_CELL",C_ExConfiguration.C_TRAP_TYPE_CELL);
                map.put(version+"_TRAP_NAME_CELL",C_ExConfiguration.C_TRAP_NAME_CELL);
                map.put(version+"_TRAP_NMS_ID_CELL",C_ExConfiguration.C_TRAP_NMS_ID_CELL);
                map.put(version+"_VAR_OID_CELL",C_ExConfiguration.C_VAR_OID_CELL);
                map.put(version+"_VAR_NAME_CELL",C_ExConfiguration.C_VAR_NAME_CELL);
                map.put(version+"_VAR_TITLE_CELL",C_ExConfiguration.C_VAR_TITLE_CELL);
                map.put(version+"_VAR_CON_CELL",C_ExConfiguration.C_VAR_CON_CELL);
                break;
            case "D":
                map.put(version+"_TRAP_OID_CELL",D_ExConfiguration.D_TRAP_OID_CELL);
                map.put(version+"_TRAP_TITLE_CELL",D_ExConfiguration.D_TRAP_TITLE_CELL);
                map.put(version+"_TRAP_LEVEL_CELL",D_ExConfiguration.D_TRAP_LEVEL_CELL);
                map.put(version+"_TRAP_TYPE_CELL",D_ExConfiguration.D_TRAP_TYPE_CELL);
                map.put(version+"_TRAP_NAME_CELL",D_ExConfiguration.D_TRAP_NAME_CELL);
                map.put(version+"_TRAP_NMS_ID_CELL",D_ExConfiguration.D_TRAP_NMS_ID_CELL);
                map.put(version+"_VAR_OID_CELL",D_ExConfiguration.D_VAR_OID_CELL);
                map.put(version+"_VAR_NAME_CELL",D_ExConfiguration.D_VAR_NAME_CELL);
                map.put(version+"_VAR_TITLE_CELL",D_ExConfiguration.D_VAR_TITLE_CELL);
                map.put(version+"_VAR_CON_CELL",D_ExConfiguration.D_VAR_CON_CELL);

        }
        return map;
    }



}
